package com.sys.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sys.common.utils.PageUtils;
import com.sys.product.entity.BrandEntity;
import com.sys.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author leifengyang
 * @email leifengyang@gmail.com
 * @date 2019-11-17 21:25:25
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {
    //修改分类名
    void updateCategoryName(Long catId, String name);

    //修改品牌名
    void updateBrandName(Long brandId, String name);

    //保存品牌与分类关系
    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    //根据分类ID查询所有品牌
    List<BrandEntity> getBrandsByCatId(Long catId);

    PageUtils queryPage(Map<String, Object> params);

}

